import { createApp } from 'vue'
import App from './App.vue'
export const app = createApp(App)
import './assets/css/public.css'

// 注册路由
import { setupRouter } from './router';
setupRouter(app);

// 注册vuex(只注册了vuex , modules会在调用时注册)
import { setupStore } from '/@/store';
setupStore(app);

// 注册全局组件
import { registerGlobalComponent } from './components/System/registerGlobalComponent';
registerGlobalComponent(app)

// 注册element-ui
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
app.use(ElementPlus)

app.mount('#app')
